<?php

use yii\db\Migration;
use yii\db\Schema;

class m170731_040403_ADD_COLUMN_ORDER_ROOM_FINAL_ROOM_ID extends Migration
{
    public function up()
    {

        $this->addColumn('{{order_room}}', 'final_room_id', Schema::TYPE_INTEGER. "(11)  NULL COMMENT '最终实际房间类型的编号， 默认与room_id 相同' ");
    }

    public function down()
    {
        echo "m170731_040403_ADD_COLUMN_ORDER_ROOM_FINAL_ROOM_ID cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
